#ifndef UART_H //Start UART.h
#define UART_H
#include <stdlib.h>
#include <inttypes.h>


#define UART_DATA_REG UDR

#define UART_CTRL_STATA UCSRA
#define UART_CTRL_STATB UCSRB
#define UART_CTRL_STATC UCSRC

#define UART_BAUDRATE_REGL UBRRL
#define UART_BAUDRATE_REGH UBRRH


#define BUFF_SIZE 10


extern volatile unsigned char Srl_rx_int ;// define the interrupt flag
extern volatile uint8_t Srl_rxbuff; // this byte is the last character read from the uart;

extern unsigned char UART_buffer[BUFF_SIZE];

volatile uint8_t Srl_buff_cnt;


/***** PROTOTYPES *******/
extern void Uart_init(void);
int Uart_putchar(uint8_t c);
extern void Uart_printstr(const char *s);
extern void Uart_printstr_p(const char *s);


#endif //End UART.h
